package com.ruoyi.play.service.impl;

import java.util.Collections;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.play.mapper.PostPlayMapper;
import com.ruoyi.play.domain.PostPlay;
import com.ruoyi.play.service.IPostPlayService;

/**
 * 活动发布Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-13
 */
@Service
public class PostPlayServiceImpl implements IPostPlayService 
{
    @Autowired
    private PostPlayMapper postPlayMapper;

    /**
     * 查询活动发布
     * 
     * @param id 活动发布主键
     * @return 活动发布
     */
    @Override
    public PostPlay selectPostPlayById(Long id)
    {
        return postPlayMapper.selectPostPlayById(id);
    }

    /**
     * 查询活动发布列表
     * 
     * @param postPlay 活动发布
     * @return 活动发布
     */
    @Override
    public List<PostPlay> selectPostPlayList(PostPlay postPlay)
    {
        return postPlayMapper.selectPostPlayList(postPlay);
    }

    /**
     * 新增活动发布
     * 
     * @param postPlay 活动发布
     * @return 结果
     */
    @Override
    public int insertPostPlay(PostPlay postPlay)
    {
        return postPlayMapper.insertPostPlay(postPlay);
    }

    /**
     * 修改活动发布
     * 
     * @param postPlay 活动发布
     * @return 结果
     */
    @Override
    public int updatePostPlay(PostPlay postPlay)
    {
        return postPlayMapper.updatePostPlay(postPlay);
    }

    /**
     * 批量删除活动发布
     * 
     * @param ids 需要删除的活动发布主键
     * @return 结果
     */
    @Override
    public int deletePostPlayByIds(Long[] ids)
    {
        return postPlayMapper.deletePostPlayByIds(ids);
    }

    /**
     * 删除活动发布信息
     * 
     * @param id 活动发布主键
     * @return 结果
     */
    @Override
    public int deletePostPlayById(Long id)
    {
        return postPlayMapper.deletePostPlayById(id);
    }

    @Override
    public List<PostPlay> selectPostPlayByIds(List<Long> joinMemberPlayIdList) {
        return postPlayMapper.selectPostPlayByIds(joinMemberPlayIdList);
    }
}
